# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=terminator
pkgver=2.1.1
pkgrel=2
pkgdesc="Terminal emulator that supports tabs and grids"
url="https://github.com/gnome-terminator/terminator"
arch="noarch"
license="GPL-2.0"
depends="
	dbus-glib
	gettext
	gsettings-desktop-schemas
	intltool
	keybinder3
	py3-cairo
	py3-configobj
	py3-dbus
	py3-gobject3
	py3-psutil
	python3
	vte3
	xdg-utils
	"
makedepends="
	py3-pytest-runner
	py3-setuptools
	python3-dev
	"
checkdepends="py3-pytest libnotify ttf-cantarell xvfb-run"
subpackages="$pkgname-doc $pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/gnome-terminator/terminator/archive/v$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	xvfb-run python3 -m pytest -k 'not test_keybinding_edit_produce_expected_accels'
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
	rm -f "$pkgdir/usr/share/icons/hicolor/icon-theme.cache"
}

sha512sums="
318a0f62961f9b365e6b4b694eaeaadc85ae842b21ef076a221ee3093b6bf8b2e86eea5b51fea2fac50ede7c2dc0fd2093acbceb13f9ca859a2cf5f7626c8372  terminator-2.1.1.tar.gz
"
